package com.eportal.ORM;

/**
 * ShopViewId entity. @author MyEclipse Persistence Tools
 */

public class ShopViewId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String shopCode;
	private String shopName;
	private String shopArea;
	private String shopBank;
	private String shopType;
	private String shopLinkman;
	private String shopPhone;
	private String shopDate;
	private Long termCount;
	private Long userCount;

	// Constructors

	/** default constructor */
	public ShopViewId() {
	}

	/** minimal constructor */
	public ShopViewId(Integer id, String shopCode, String shopName,
			String shopArea, String shopBank, String shopType,
			String shopLinkman, String shopPhone, String shopDate) {
		this.id = id;
		this.shopCode = shopCode;
		this.shopName = shopName;
		this.shopArea = shopArea;
		this.shopBank = shopBank;
		this.shopType = shopType;
		this.shopLinkman = shopLinkman;
		this.shopPhone = shopPhone;
		this.shopDate = shopDate;
	}

	/** full constructor */
	public ShopViewId(Integer id, String shopCode, String shopName,
			String shopArea, String shopBank, String shopType,
			String shopLinkman, String shopPhone, String shopDate,
			Long termCount, Long userCount) {
		this.id = id;
		this.shopCode = shopCode;
		this.shopName = shopName;
		this.shopArea = shopArea;
		this.shopBank = shopBank;
		this.shopType = shopType;
		this.shopLinkman = shopLinkman;
		this.shopPhone = shopPhone;
		this.shopDate = shopDate;
		this.termCount = termCount;
		this.userCount = userCount;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getShopCode() {
		return this.shopCode;
	}

	public void setShopCode(String shopCode) {
		this.shopCode = shopCode;
	}

	public String getShopName() {
		return this.shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getShopArea() {
		return this.shopArea;
	}

	public void setShopArea(String shopArea) {
		this.shopArea = shopArea;
	}

	public String getShopBank() {
		return this.shopBank;
	}

	public void setShopBank(String shopBank) {
		this.shopBank = shopBank;
	}

	public String getShopType() {
		return this.shopType;
	}

	public void setShopType(String shopType) {
		this.shopType = shopType;
	}

	public String getShopLinkman() {
		return this.shopLinkman;
	}

	public void setShopLinkman(String shopLinkman) {
		this.shopLinkman = shopLinkman;
	}

	public String getShopPhone() {
		return this.shopPhone;
	}

	public void setShopPhone(String shopPhone) {
		this.shopPhone = shopPhone;
	}

	public String getShopDate() {
		return this.shopDate;
	}

	public void setShopDate(String shopDate) {
		this.shopDate = shopDate;
	}

	public Long getTermCount() {
		return this.termCount;
	}

	public void setTermCount(Long termCount) {
		this.termCount = termCount;
	}

	public Long getUserCount() {
		return this.userCount;
	}

	public void setUserCount(Long userCount) {
		this.userCount = userCount;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ShopViewId))
			return false;
		ShopViewId castOther = (ShopViewId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getShopCode() == castOther.getShopCode()) || (this
						.getShopCode() != null
						&& castOther.getShopCode() != null && this
						.getShopCode().equals(castOther.getShopCode())))
				&& ((this.getShopName() == castOther.getShopName()) || (this
						.getShopName() != null
						&& castOther.getShopName() != null && this
						.getShopName().equals(castOther.getShopName())))
				&& ((this.getShopArea() == castOther.getShopArea()) || (this
						.getShopArea() != null
						&& castOther.getShopArea() != null && this
						.getShopArea().equals(castOther.getShopArea())))
				&& ((this.getShopBank() == castOther.getShopBank()) || (this
						.getShopBank() != null
						&& castOther.getShopBank() != null && this
						.getShopBank().equals(castOther.getShopBank())))
				&& ((this.getShopType() == castOther.getShopType()) || (this
						.getShopType() != null
						&& castOther.getShopType() != null && this
						.getShopType().equals(castOther.getShopType())))
				&& ((this.getShopLinkman() == castOther.getShopLinkman()) || (this
						.getShopLinkman() != null
						&& castOther.getShopLinkman() != null && this
						.getShopLinkman().equals(castOther.getShopLinkman())))
				&& ((this.getShopPhone() == castOther.getShopPhone()) || (this
						.getShopPhone() != null
						&& castOther.getShopPhone() != null && this
						.getShopPhone().equals(castOther.getShopPhone())))
				&& ((this.getShopDate() == castOther.getShopDate()) || (this
						.getShopDate() != null
						&& castOther.getShopDate() != null && this
						.getShopDate().equals(castOther.getShopDate())))
				&& ((this.getTermCount() == castOther.getTermCount()) || (this
						.getTermCount() != null
						&& castOther.getTermCount() != null && this
						.getTermCount().equals(castOther.getTermCount())))
				&& ((this.getUserCount() == castOther.getUserCount()) || (this
						.getUserCount() != null
						&& castOther.getUserCount() != null && this
						.getUserCount().equals(castOther.getUserCount())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getShopCode() == null ? 0 : this.getShopCode().hashCode());
		result = 37 * result
				+ (getShopName() == null ? 0 : this.getShopName().hashCode());
		result = 37 * result
				+ (getShopArea() == null ? 0 : this.getShopArea().hashCode());
		result = 37 * result
				+ (getShopBank() == null ? 0 : this.getShopBank().hashCode());
		result = 37 * result
				+ (getShopType() == null ? 0 : this.getShopType().hashCode());
		result = 37
				* result
				+ (getShopLinkman() == null ? 0 : this.getShopLinkman()
						.hashCode());
		result = 37 * result
				+ (getShopPhone() == null ? 0 : this.getShopPhone().hashCode());
		result = 37 * result
				+ (getShopDate() == null ? 0 : this.getShopDate().hashCode());
		result = 37 * result
				+ (getTermCount() == null ? 0 : this.getTermCount().hashCode());
		result = 37 * result
				+ (getUserCount() == null ? 0 : this.getUserCount().hashCode());
		return result;
	}

}